<!DOCTYPE html>
<!-- saved from url=(0066)http://sale.jieyoushequ.com/index/ordertaken?id=11694&supId=108557 -->
<html style="font-size: 133.333px;"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, maximum-scale=1">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no, email=no">
    <meta content="fullscreen=yes,preventMove=no" name="ML-Config">
    <meta http-equiv="content-language" content="zh-CN">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <title>待送订单</title>
    <script src="./待送订单4_files/common.js"></script>
    <link rel="stylesheet" href="./待送订单4_files/daipai.css">
    <script src="./待送订单4_files/jquery.min.js"></script><style type="text/css" abt="234"></style><style type="text/css"></style>
    <script src="./待送订单4_files/rt.0.5.1.min.js"></script>
    <script src="./待送订单4_files/layer.js"></script><link href="./待送订单4_files/layer.css" type="text/css" rel="styleSheet" id="layermcss">
    <script src="./待送订单4_files/fastclick.js"></script>
    <script src="./待送订单4_files/news.js"></script>
<script id="picviewer-page-script">(function (messageID){
                var frameID=Math.random();
                var frames={
                    top:window.top,
                };

                window.addEventListener('message',function(e){
                    var data=e.data;
                    if( !data || !data.messageID || data.messageID != messageID )return;//通信ID认证
                    var source=e.source;
                    if(source===window){//来自contentscript,发送出去,或者干嘛。
                        if(data.to){
                            data.from=frameID;
                            frames[data.to].postMessage(data,'*');
                        }else{
                            switch(data.command){
                                case 'getIframeObject':{
                                    var frameWindow=frames[data.windowId];
                                    var iframes=document.getElementsByTagName('iframe');
                                    var iframe;
                                    var targetIframe;
                                    for(var i=iframes.length-1 ; i>=0 ; i--){
                                        iframe=iframes[i];
                                        if(iframe.contentWindow===frameWindow){
                                            targetIframe=iframe;
                                            break;
                                        };
                                    };
                                    var cusEvent=document.createEvent('CustomEvent');
                                    cusEvent.initCustomEvent('pv-getIframeObject',false,false,targetIframe);
                                    document.dispatchEvent(cusEvent);
                                }break;
                            };
                        };

                    }else{//来自别的窗口的，contentscript可以直接接收，这里保存下来自的窗口的引用
                        frames[data.from]=source;
                    };
                },true)
            })("pv-0.5106795670312598")</script><script>//remove 17173 video ad
doAdblock();
function doAdblock(){
    (function() {
        function A() {}
        A.prototype = {
            rules: {
                '17173_in':{
                    'find':/http:\/\/f\.v\.17173cdn\.com\/(\d+\/)?flash\/PreloaderFile(Customer)?\.swf/,
                    'replace':"http://swf.adtchrome.com/17173_in_20150522.swf"
                },
                '17173_out':{
                    'find':/http:\/\/f\.v\.17173cdn\.com\/(\d+\/)?flash\/PreloaderFileFirstpage\.swf/,
                    'replace':"http://swf.adtchrome.com/17173_out_20150522.swf"
                },
                '17173_live':{
                    'find':/http:\/\/f\.v\.17173cdn\.com\/(\d+\/)?flash\/Player_stream(_firstpage)?\.swf/,
                    'replace':"http://swf.adtchrome.com/17173_stream_20150522.swf"
                },
                '17173_live_out':{
                    'find':/http:\/\/f\.v\.17173cdn\.com\/(\d+\/)?flash\/Player_stream_(custom)?Out\.swf/,
                    'replace':"http://swf.adtchrome.com/17173.out.Live.swf"
                }
            },
            _done: null,
            get done() {
                if(!this._done) {
                    this._done = new Array();
                }
                return this._done;
            },
            addAnimations: function() {
                var style = document.createElement('style');
                style.type = 'text/css';
                style.innerHTML = 'object,embed{\
                -webkit-animation-duration:.001s;-webkit-animation-name:playerInserted;\
                -ms-animation-duration:.001s;-ms-animation-name:playerInserted;\
                -o-animation-duration:.001s;-o-animation-name:playerInserted;\
                animation-duration:.001s;animation-name:playerInserted;}\
                @-webkit-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}\
                @-ms-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}\
                @-o-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}\
                @keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}';
                document.getElementsByTagName('head')[0].appendChild(style);
            },
            animationsHandler: function(e) {
                if(e.animationName === 'playerInserted') {
                    this.replace(e.target);
                }
            },
            replace: function(elem) {
                if(this.done.indexOf(elem) != -1) return;
                this.done.push(elem);
                var player = elem.data || elem.src;
                if(!player) return;
                var i, find, replace = false;
                for(i in this.rules) {
                    find = this.rules[i]['find'];
                    if(find.test(player)) {
                        replace = this.rules[i]['replace'];
                        if('function' === typeof this.rules[i]['preHandle']) {
                            this.rules[i]['preHandle'].bind(this, elem, find, replace, player)();
                        }else{
                            this.reallyReplace.bind(this, elem, find, replace)();
                        }
                        break;
                    }
                }
            },
            reallyReplace: function(elem, find, replace) {
                elem.data && (elem.data = elem.data.replace(find, replace)) || elem.src && ((elem.src = elem.src.replace(find, replace)) && (elem.style.display = 'block'));
                var b = elem.querySelector("param[name='movie']");
                this.reloadPlugin(elem);
            },
            reloadPlugin: function(elem) {
                var nextSibling = elem.nextSibling;
                var parentNode = elem.parentNode;
                parentNode.removeChild(elem);
                var newElem = elem.cloneNode(true);
                this.done.push(newElem);
                if(nextSibling) {
                    parentNode.insertBefore(newElem, nextSibling);
                } else {
                    parentNode.appendChild(newElem);
                }
            },
            init: function() {
                var handler = this.animationsHandler.bind(this);
                document.body.addEventListener('webkitAnimationStart', handler, false);
                document.body.addEventListener('msAnimationStart', handler, false);
                document.body.addEventListener('oAnimationStart', handler, false);
                document.body.addEventListener('animationstart', handler, false);
                this.addAnimations();
            }
        };
        new A().init();
    })();
}
//remove baidu search ad
if(document.URL.indexOf('www.baidu.com') >= 0){
    if(document && document.getElementsByTagName && document.getElementById && document.body){
        var aa = function(){
            var all = document.body.querySelectorAll("#content_left div,#content_left table");
            for(var i = 0; i < all.length; i++){
                if(/display:\s?(table|block)\s!important/.test(all[i].getAttribute("style"))){all[i].style.display= "none";all[i].style.visibility='hidden';}
            }
            all = document.body.querySelectorAll('.result.c-container[id="1"]');
            //if(all.length == 1) return;
            for(var i = 0; i < all.length; i++){
                if(all[i].innerHTML && all[i].innerHTML.indexOf('广告')>-1){
                    all[i].style.display= "none";all[i].style.visibility='hidden';
                }
            }
        }
        aa();
        document.getElementById('wrapper_wrapper').addEventListener('DOMSubtreeModified',aa)
    };
}
//remove sohu video ad
if (document.URL.indexOf("tv.sohu.com") >= 0){
    if (document.cookie.indexOf("fee_status=true")==-1){document.cookie='fee_status=true'};
}
//remove 56.com video ad
if (document.URL.indexOf("56.com") >= 0){
    if (document.cookie.indexOf("fee_status=true")==-1){document.cookie='fee_status=true'};
}
//fore iqiyi enable html5 player function
if (document.URL.indexOf("iqiyi.com") >= 0){
    if (document.cookie.indexOf("player_forcedType=h5_VOD")==-1){
        document.cookie='player_forcedType=h5_VOD'
        if(localStorage.reloadTime && Date.now() - parseInt(localStorage.reloadTime)<60000){
            console.log('no reload')
        }else{
            location.reload()
            localStorage.reloadTime = Date.now();
        }
    }
}
</script><style type="text/css">object,embed{                -webkit-animation-duration:.001s;-webkit-animation-name:playerInserted;                -ms-animation-duration:.001s;-ms-animation-name:playerInserted;                -o-animation-duration:.001s;-o-animation-name:playerInserted;                animation-duration:.001s;animation-name:playerInserted;}                @-webkit-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}                @-ms-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}                @-o-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}                @keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}</style></head>
<body>
<div class="navv">
    <ul>
        <li class="">原订单情况</li>
        <li class="active">成交订单情况</li>
    </ul>
</div>
<div class="show">
    <div class="content" id="orderFirst" style="display: none;">
    <div class="ping"><i></i>冰箱/LG/二线</div>
    <ul class="qing">
        <li>订单编号	<span>108557</span></li>
        <li>用户姓名 	<span>lieleung1辉</span></li>
        <li>商品品类	<span>冰箱</span></li>
        <li>商品等线	<span>二线</span></li>
        <li>商品品牌	<span>LG</span></li>
        <li>商品容量	<span>151-200</span></li>
        <li>商品型号	<span>双开门</span></li>
        <li>商品成色	<span>七成新</span></li>
        <li>结算价格	<span>450元</span></li>
        <li>配送地址	<span>广东 广州 从化区，广东省 广州市 从化区 城郊街道 城鳌大道东93号广州海机联包装设备有限公司五中斜对面发电站 </span></li>
        <li>联系电话	<span>86-17702002767，</span></li>
        <li>备注	<span></span></li>
    </ul>
    <div class="orderbtn">
        <button class="btn">确定送达</button>
    </div>
</div>
    <div class="content" id="ordertwo" style="display: block;">
    <ul class="content1 padd">
        <li class="toplink"><a>购买商品</a> 	<span>冰箱</span></li>
        <li class="toplink"><a>商品等线 </a> 	<span>一线</span></li>
        <li class="toplink"><a>商品品牌</a>	<span>海尔</span></li>
        <li class="toplink"><a>商品容量</a> 	<span>100升以下</span></li>
        <li class="toplink"><a>商品型号</a> 	<span>单开门</span></li>
        <li class="toplink"><a> 商品成色</a>	<span>九成新</span></li>
        <li><a>结算价格</a><span id="mom">280</span></li>
        <li><a>补差价格</a><span id="mom">-170</span></li>
        <li class="so"><a>送货日期</a><span id="rq">2018-08-01 8:00-10:00<i class="ri"></i></span></li>
    </ul>
    <div class="hui"></div>
    <div class="pho">
        <h3>商品实图</h3>
        
        <div class="pic">
            <ul>
                
                
            </ul>
        </div>
        
    </div>
    <div class="xuan">
        瑕疵图<span>（选填项）：</span>
    </div>
    <!--++-->
    
    <div class="pho">
        <h3></h3>
        <div class="pic">
            <ul>
                
                
            </ul>
        </div>
    </div>
    
    <div class="hui"></div>
    <ul class="content1 padd">
        <li>瑕疵点描述：</li>
        <li><a>颜色</a>  		<span>严重变色</span></li>
        <li><a>划痕</a> 	    <span>正面2cm以下</span></li>
        <li><a>磕碰</a>       	<span>正面1角硬币</span></li>
        <li><a>掉漆</a>       	<span>有</span></li>
        <li><a>维修史</a>		<span>主部件</span></li>
    </ul>
     </div>
</div>
<script>
    $(function(){
        FastClick.attach(document.body);
        var  orderId=GetQueryString('id');
        var  goodid=GetQueryString('supId');
        $.ajax({
            type:urlType,
            url: "/user-order/order-detail",
            data: {
                supplierId:orderId,
                orderId:goodid
            },
            dataType: "json",
            success: function (res) {
                // console.log(res)
                if(res.code==200){
                    var data = res.data;
                    if(data.Scapacity==null){
                        $('.navv').hide();
                    }else {
                        $('.navv').show();
                    }
                    var tpl = $('#defaultMsg').html();
                    var tdd= 	$('#Purchase').html();
                    var html = rt.template(tpl, data);
                    var htmltwo = rt.template(tdd, data);
                    $('#orderFirst').html(html);
                    $('#ordertwo').html(htmltwo);
                }else{
                    layer.open({
                        content:res.message,
                        btn:'确定'
                    })
                }
            },
            error: function () {
            }
        });
        //确定送达
        $(document).on('click','.orderbtn .btn',function(){
            layer.open({
                content:'确认送达？',
                btn:['确定','取消'],
                yes: function(index){
                    //location.reload();
                    $.ajax({
                        type:urlType,
                        url: "/user-order/arrive",
                        data: {
                            order_id:goodid
                        },
                        dataType: "json",
                        success: function (res) {
                            console.log(res)
                            layer.closeAll();
                            layer.open({
                                content:res.message,
                                btn:'确定'
                            })
                            if(res.message=='成功'){
                                $('.orderBox [data-id='+orderId+']').remove();
                                $('.orderbtn .btn').remove();
                            }
                        },
                        error: function () {
                        }
                    });
                    layer.close(index);
                }
            });

        });
    })
</script>
<script type="text/html" id="Purchase">
    <ul class="content1 padd" >
        <li class="toplink"><a>购买商品</a> 	<span><%=it.Scategory %></span></li>
        <li class="toplink"><a>商品等线 </a> 	<span><%=it.Sgrade %></span></li>
        <li class="toplink"><a>商品品牌</a>	<span><%=it.Sbrand %></span></li>
        <li class="toplink"><a>商品容量</a> 	<span><%=it.Scapacity %></span></li>
        <li class="toplink"><a>商品型号</a> 	<span><%=it.Smodel_number %></span></li>
        <li class="toplink"><a> 商品成色</a>	<span><%=it.Scondition%></span></li>
        <li><a>结算价格</a><span id="mom"><%=(parseInt(it.Sdeal_price)/100) %></span></li>
        <li><a>补差价格</a><span id="mom"><%=(parseInt(it.Sstandard_price - it.standard_price)/100) %></span></li>
        <li class="so"><a>送货日期</a><span id="rq"><%= it.delivery_time %><i class="ri"></i></span></li>
    </ul>
    <div class="hui"></div>
    <div class="pho">
        <h3>商品实图</h3>
        <%if(it.real_images){%>
        <div class="pic">
            <ul>
                <%	var aa= JSON.parse(it.real_images); %>
                <% for(var i=0; i < aa.length; i++){ %>
                <%	var item= aa[i]; %>
                <li><img src="<%= item %>"></li>
                <%}%>
            </ul>
        </div>
        <%}%>
    </div>
    <div class="xuan">
        瑕疵图<span>（选填项）：</span>
    </div>
    <!--++-->
    <%if(it.flaw_images){%>
    <div class="pho">
        <h3></h3>
        <div class="pic">
            <ul>
                <%	var xz= JSON.parse(it.flaw_images); %>
                <% for(var i=0; i < xz.length; i++){ %>
                <%	var itemtwo= xz[i]; %>
                <li><img src="<%= itemtwo %>"></li>
                <%}%>
            </ul>
        </div>
    </div>
    <%}%>
    <div class="hui"></div>
    <ul class="content1 padd">
        <li>瑕疵点描述：</li>
        <li><a>颜色</a>  		<span><%=it.flaw_colour%></span></li>
        <li><a>划痕</a> 	    <span><%=it.flaw_scratch%></span></li>
        <li><a>磕碰</a>       	<span><%=it.flaw_bump%></span></li>
        <li><a>掉漆</a>       	<span><%=it.flaw_paint%></span></li>
        <li><a>维修史</a>		<span><%=it.flaw_repair%></span></li>
    </ul>
     </script>
<script type="text/html" id="defaultMsg">
    <div class="ping"><i></i><%=it.category%>/<%=it.brand%>/<%=it.grade%></div>
    <ul class="qing">
        <li>订单编号	<span><%=it.id%></span></li>
        <li>用户姓名 	<span><%=it.user_name%></span></li>
        <li>商品品类	<span><%=it.category%></span></li>
        <li>商品等线	<span><%=it.grade%></span></li>
        <li>商品品牌	<span><%=it.brand%></span></li>
        <li>商品容量	<span><%=it.capacity%></span></li>
        <li>商品型号	<span><%=it.model_number%></span></li>
        <li>商品成色	<span><%=it.condition%></span></li>
        <li>结算价格	<span><%=(parseInt(it.reserve_price)/100)%>元</span></li>
        <li>配送地址	<span><%=it.province_name%> <%=it.city_name%> <%=it.area_name%><%=it.address%></span></li>
        <li>联系电话	<span><%=it.mobile%></span></li>
        <li>备注	<span><%=it.remarks%></span></li>
    </ul>
    <div class="orderbtn">
        <button class="btn">确定送达</button>
    </div>
</script>


</body></html>